<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Ajax Framework - <span class="subitem">Events</span>
    </ui:define>

    <ui:define name="description">
        p:ajax enables ajax features on supported components.
    </ui:define>

    <ui:param name="documentationLink" value="/components/ajaxbehavior" />

    <ui:define name="implementation">
        
        <h:form>
            <h:panelGrid columns="3" cellpadding="5">
                <h:outputText value="KeyUp: " />
                <p:inputText id="firstname" value="#{userView.firstname}">
                    <p:ajax event="keyup" update="out1" />
                </p:inputText>
                <h:outputText id="out1" value="#{userView.firstname}" />

                <h:outputText value="Blur: " />
                <p:inputText id="surname" value="#{userView.lastname}">
                    <p:ajax event="blur" update="out2" />
                </p:inputText>
                <h:outputText id="out2" value="#{userView.lastname}" />
            </h:panelGrid>
        </h:form>
        
    </ui:define>

</ui:composition>